package com.xy.tool.concurrent.locks.rdb.autoconfigure;

import com.xy.tool.concurrent.locks.rdb.RdbDisLockFactory;
import com.xy.tool.concurrent.locks.rdb.dao.DisLockDao;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RdbDisLockConfiguration {

    @Bean
    public RdbDisLockFactory rdbDisLockFactory(DisLockDao disLockDao) {
        return new RdbDisLockFactory(disLockDao);
    }

}
